from django.conf.urls import url, include
from users import views

urlpatterns = [
    url(r'^register/$',views.RegisterView.as_view(), name='register'),
    url(r'^login/$', views.LoginView.as_view(), name='login'),
    #忘记密码
    url(r'^forget/$', views.ForgetPwdView.as_view(), name='forget_pwd'),
    # 修改密码
    url(r'^reset/(?P<active_code>.*)/$', views.ResetView.as_view(), name='reset_pwd'),
    # /users/info/
    url(r'^users/info/$', views.UserInfoView.as_view(), name='user_info'),
    # 修改图片
    url(r'^image/upload/$', views.UploadImageView.as_view(), name='image_upload'),
    # 退出登录
    url(r'^logout/$', views.LogoutView.as_view(), name='logout'),

]

